package com.taxi.driver.module.main.mine.setting.volume;

import com.taxi.driver.common.BasePresenter;
import com.taxi.driver.data.user.UserRepository;

import javax.inject.Inject;

public class VolumePresenter extends BasePresenter implements VolumeContract.Presenter {

    private VolumeContract.View mView;
    private UserRepository mUserRepository;

    @Inject
    public VolumePresenter(UserRepository userRepository,VolumeContract.View view) {
        this.mUserRepository = userRepository;
        mView = view;
    }

    @Override
    public void setVolumeType(boolean isSystemVolume) {
        mUserRepository.setVolumeType(isSystemVolume);
    }

    @Override
    public boolean isImmobilizationVolum() {
        return mUserRepository.isImmobilizationVolum();
    }

    @Override
    public void setImmobilizationVolumeSize(int size) {
        mUserRepository.setImmobilizationVolumeSize(size);
    }

    @Override
    public int getImmobilizationVolumeSize() {
        return mUserRepository.getImmobilizationVolumeSize();
    }

    @Override
    public void setSystemVolumeSize(int size) {
        mUserRepository.setSystemVolumeSize(size);
    }

    @Override
    public int getSystemVolumeSize() {
        return mUserRepository.getSystemVolumeSize();
    }

}
